package com.itheima.d15_extends_constructor;

public class Dog extends Animal{
    public Dog(){
        super();//写不写都有，调用父类的无参构造器
        System.out.println("-----Dog无参构造器被执行了-----");
    }
    public Dog(String n){
        super();
        System.out.println("-----Dog有参构造器被执行了-----");
    }
}
